import request from '@/utils/request'

// 查询超期费列表
export function listOverdue(query) {
  return request({
    url: '/fees/overdue/list',
    method: 'get',
    params: query
  })
}

// 查询超期费详细
export function getOverdue(overdueFeeId) {
  return request({
    url: '/fees/overdue/' + overdueFeeId,
    method: 'get'
  })
}

// 新增超期费
export function addOverdue(data) {
  return request({
    url: '/fees/overdue',
    method: 'post',
    data: data
  })
}

// 修改超期费
export function updateOverdue(data) {
  return request({
    url: '/fees/overdue',
    method: 'put',
    data: data
  })
}

// 删除超期费
export function delOverdue(overdueFeeId) {
  return request({
    url: '/fees/overdue/' + overdueFeeId,
    method: 'delete'
  })
}
